package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 采购明细实体类
 */
@TableName("t_buyerInfo")
public class BuyerInfoBean {
    //编号
    @TableId(value = "pk_buyerInfoId" ,type = IdType.AUTO)
    private Integer id;
    //采购的商品
    @TableField(exist = false)
    private ProductBean product;
    //采购商品的Id
    @TableField("fk_productId")
    private String productId;
    //采购价格
    @TableField("bi_buyMoney")
    private String buyPrice;
    //采购数量
    @TableField("bi_num")
    private Integer num;
    //所属采购实体Id
    @TableField("fk_buyerId")
    private Integer buyerId;
    //所属采购实体
    @TableField(exist = false)
    private BuyerBean buyer;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getBuyPrice() {
        return buyPrice;
    }

    public void setBuyPrice(String buyPrice) {
        this.buyPrice = buyPrice;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getBuyerId() {
        return buyerId;
    }

    public void setBuyerId(Integer buyerId) {
        this.buyerId = buyerId;
    }

    public BuyerBean getBuyer() {
        return buyer;
    }

    public void setBuyer(BuyerBean buyer) {
        this.buyer = buyer;
    }
}
